From: Tomeu Vizoso Date: Tue, 21 May 2013 15:32:39 +0000 (+0200) Subject: Disable all extensions in reverse order X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4140 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=88ce65266eb5635f8e8ae2a6b45ad8da6e576e28;p=gnome-shell.git Disable all extensions in reverse order So we avoid having to disable and enable an extension that is to be disabled later anyway. https://bugzilla.gnome.org/show_bug.cgi?id=700784 --- diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index 8c12e976b..a929451d5 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -292,7 +292,7 @@ function disableAllExtensions() { return; if (initted) { - enabledExtensions.forEach(function(uuid) { + extensionOrder.slice().reverse().forEach(function(uuid) { disableExtension(uuid); }); }